﻿function callback() {
	require(['durandal/system', 'durandal/app', 'durandal/viewLocator', 'bootstrap', 'easyui', 'polyfills'],
		function(system, app, viewLocator, bootstrap, easyui, customPolyfills) {
			//>>excludeStart("build", true);
			system.debug(true);
			//>>excludeEnd("build");

			app.title = 'Durandal Samples';

			app.configurePlugins({
				router: true,
				dialog: true,
				widget: {
					kinds: ['expander']
				}
			});

			app.start().then(function() {
				//Replace 'viewmodels' in the moduleId with 'views' to locate the view.
				//Look for partial views in a 'views' folder in the root.
				viewLocator.useConvention();
				//Show the app by setting the root view model for our application with a transition.
				app.setRoot('app-samples/shell', 'entrance');
			});
		})
}
require(['require.config'], callback);